{include file="header" title="YunCMS后台管理系统" keywords="" description=""/}

<div class="content-page">
    <div class="am-container">
        <div class="page-title"><h1 class="am-inline">内容列表</h1>
            <a href="<?=URL('admin/content/edit');?>" class="am-btn am-btn-primary am-btn-xs am-radius">
                <i class="am-icon am-icon-edit"></i>添加文章
            </a>
            <!--<a href="#" class="am-btn am-btn-default am-btn-xs am-radius">-->
                <!--<i class="am-icon-trash"></i>回收站-->
            <!--</a>-->
        </div>
        <form class="am-form-inline search-form">
            {:token()}
            <div class="am-form-group">
                <select data-am-selected placeholder="选择分类">
                    <option value="all">选择分类</option>
                    <option value="a">未分类</option>
                </select>
            </div>
            <div class="am-form-group">
                <input type="keyword" class="am-form-field" name="am-form-field" placeholder="关键词">
            </div>
            <button type="submit" class="am-btn am-btn-default"><i class="am-icon-search"></i></button>
        </form>
        <table class="am-table">
            <thead>
            <tr>
                <th>内容编号</th>
                <th>类别编号</th>
                <th>标题</th>
                <th>简介</th>
                <th>内容</th>
                <th>阅读量</th>
                <th>评论量</th>
                <th>发布时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name='list' id='content'}
            <tr>
                <td>{$content.content_id}</td>
                <td>{$content.category_id}</td>
                <td>{$content.title}</td>
                <td>{$content.intro}</td>
                <td>{$content.content}</td>
                <td>{$content.read_number}</td>
                <td>{$content.comment_number}</td>
                <td>{$content.push_time|date='Y-m-d H:i:s',###}</td>
                <td>
                    <div class="am-btn-group am-btn-group-xs">
                        <!--<a href="#" class="am-btn am-btn-primary am-radius"><i class="am-icon-send"></i></a>-->
                        <a href="<?=URL('admin/content/edit',array('id'=>$content['content_id']));?>" class="am-btn am-btn-primary am-radius"><i
                            class="am-icon-edit content-md-edit"></i></a>
                        <a href="<?=URL('admin/content/delete',array('id'=>$content['content_id']));?>" class="am-btn am-btn-primary am-radius"><i class="am-icon-trash"></i></a>
                    </div>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        {$page}
    </div>
</div>

{include file="footer" /}
